﻿u//载入基础页面
{extend name="common/base" /}

//页面单独CSS
{block name="CustomCSS"}
<link rel="stylesheet" href="__STATIC__/vendors/css/datatables/datatables.min.css">

{/block}

//页面单独JS
{block name="CustomJS"}
<script src="__STATIC__/vendors/js/datatables/datatables.min.js"></script>
<script src="__STATIC__/vendors/js/noty/noty.min.js"></script>
<script>

    (function ($) {
    'use strict';
    // ------------------------------------------------------- //
    // Auto Hide
    // ------------------------------------------------------ //    
        $(function () {
            //定义表格
            var table = $('#table').DataTable({
                language: {
                    "url": "__STATIC__/vendors/js/datatables/cn.json"
                },
                lengthMenu: [
                    [10, 15, 20, -1],
                    [10, 15, 20, "所有"]
                ],//分页数目
                stateSave: true, 
                columnDefs: [
                    { "orderable": false, "targets": 8}//禁止排序
                ]
            });
        });
    })(jQuery);

</script>
{/block}

//页面名称
{block name="PageName"}
未完善客户信息列表
{/block}

//自定义Modal
{block name="Modal"}
{/block}

//主页面
{block name="main"}
<div class="row">
    <div class="col-xl-12">
        <!-- Export -->
        <div class="widget has-shadow">
        	<div class="widget-header bordered no-actions d-flex align-items-center">
                <h2>未完善客户信息列表</h2>
            </div>
            <div class="widget-body">
                <div class="table-responsive">
                    <table id="table" class="table mb-0">
                        <thead>
                            <tr>
                                <th>交车日期</th>
                                <th>销售顾问</th>
                                <th>客户名称</th>
                                <th>车系</th>
                                <th>配置</th>
                                <th>颜色</th>
                                <th>内饰</th>
                                <th>车架号</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="data" id="list"}
                            <tr>
                                <td>{$list.deliver_date|date="m月d日"}</td>
                                <td>{$list.sales}</td>
                                <td>{$list.owner_name}</td>
                                <td>{$list.vehicle}</td>
                                <td>{$list.config}</td>
                                <td>{$list.trim}</td>
                                <td>{$list.color}</td>
                                <td>{$list.vin}</td>
                                <td class="td-actions">
                                    <div class="btn-group" role="group">
                                        <button type="button" class="btn btn-warning btn-sm mr-1 mb-2"  onclick="javascript:window.location.href='{:url('Service/edit',['id' => $list.id,'type' => 'perfect'])}'">完善信息</button>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!-- End Export -->
    </div>
</div>

<!-- End Centered Modal -->
{/block}

